<?php

namespace IDock\Insurance\DAJIA\Request;

use IDock\Insurance\DAJIA\Request\AllDAJIARequest;
use IDock\Insurance\DAJIA\Response\CommonResponse;
use IDock\Insurance\DAJIA\Response\ElectricalInsuranceResponse;
use IDock\Insurance\DAJIA\Response\InsuranceOrderQueryResponse;
use IDock\Visitor\EPolicyDownloadVisitor;

/**
 * 查询保单接口
 */
class ElectronicInsuranceDownloadRequest extends AllDAJIARequest
{
    protected $code = 'VHL-INS2005';

    protected $response = ElectricalInsuranceResponse::class;

    protected $urlTip = '电子保单下载接口';


    protected $plyNo = '';

    protected $thirdAccout = '';


    /**
     * @var EPolicyDownloadVisitor $visitor
     */
    protected $visitor;


    public function generate(): array
    {

        return [
            'plyNo' => [$this->visitor->policyNo],
            'thirdAccout' => $this->thirdAccout,
            'dptCde' => $this->visitor->argc['dptCde'] ?? '',
            'operaCde' => $this->visitor->argc['operaCde'] ?? '',
            'operaName' => $this->visitor->argc['operaName'] ?? '',
            'phone' => $this->visitor->argc['phone'] ?? '',
        ];
    }



}
